import com.lovo.st.Course;
import com.lovo.st.Student;
import com.lovo.st.Teacher;

public class Application {
    class Inner{
        public void testInner(){
            System.out.println("testInner");
        }
    }
    teststatic class InnerStatic{
        public void testInner(){
            System.out.println("testInner");
        }
    }
    public int a = 10;
    public void f(){
        class Inner{
            int b = 20;
            public void g(){
                System.out.println(a);
                System.out.println(b);
            }
        }
        Inner inner = new Inner();
        inner.g();
    }

    public teststatic void main(String[] args) {
        Application application = new Application();
        application.f();

        new Application(){
            public void f(){
                System.out.println("F");
            };
        }.f();
//        Application.Inner inner = application.new Inner();
//        inner.testInner();
//        Application.InnerStatic innerStatic = new Application.InnerStatic();
//        innerStatic.testInner();
//        Student student = new Student("小王",30,"男");
//        Teacher teacher = new Teacher("胡老师");
//        Course course = new Course("Java基础");
//        student.listen(teacher,course);
//
//        Teacher teacher1 = new Teacher("白老师");
//        student.listen(teacher1,course);
    }


}
